package lion.framework.core.task;

/**
 * @author lion
 * @email hl_0074@sina.com
 * @date 2015年8月8日
 */
public enum TaskStatus {
	WAITING, PENDING, RUNNING, EXPIRED, STOP;

	public boolean in(TaskStatus... statuses) {

		for (TaskStatus status : statuses) {
			if (status == this) { return true; }
		}
		return false;
	}
}
